package cn.seaboot.admin.logger.bean;

/**
 * 日志级别，对应于log4j，系统内通用
 *
 * @author Mr.css
 * @version 2022-04-28 17:02
 */
public enum LogLevel {
    TRACE(0), DEBUG(1), INFO(2), WARN(3),
    ERROR(4), FATAL(5), OFF(6);

    private final int value;

    LogLevel(int value) {
        this.value = value;
    }

    public int value() {
        return this.value;
    }

    public static LogLevel valueOf(int value) {
        return LogLevel.values()[value];
    }
}
